//
//  DocumentCellModel.m
//  EnvironmentalProtection
//
//  Created by HCreater on 2018/11/4.
//  Copyright © 2018年 HCreater. All rights reserved.
//

#import "DocumentCellModel.h"

@interface DocumentCellModel ()

@property (nonatomic, copy) NSString* title;
@property (nonatomic, copy) NSString* time;
@property (nonatomic, copy) NSString* readNum;
@property (nonatomic, copy) NSString* downloadNum;
@property (nonatomic, copy) NSString* tagImg;

@end

@implementation DocumentCellModel

- (instancetype)initWithData:(id)data cellHeight:(CGFloat)cellHeight
{
    self = [super init];
    if (self)
    {
        _data = data;
        
        /// cellHeight+2（2容错）
        _cellHeight = MHUIScaleValue(cellHeight)+2;
        
        DocumentListData* dlistData = data;
        self.title = dlistData.title;
        self.time = dlistData.addTime;
        self.readNum = dlistData.readCount;
        self.downloadNum = dlistData.downloadCount;
        self.tagImg = @"icon_w";
    }
    
    return self;
}

@end
